package com.xxgc.spring.dao.impl;

import com.xxgc.spring.bean.Users;
import com.xxgc.spring.dao.UsersMapper;
import org.springframework.stereotype.Repository;

@Repository
public class UserMapperImpl implements UsersMapper {
    public Users selectUsersByUsers(Users users) {
        //查询语句
        if("zhangsan".equals(users.getName()) && "123456".equals(users.getPass())){
            return users;
        }else{
            return null;
        }

    }
}
